package com.atguigu.gulimail.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimail.auth.vo.LoginVo;
import com.atguigu.gulimail.auth.vo.RegistVo;
import com.atguigu.gulimail.auth.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimail-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
     R regist(@RequestBody RegistVo registVo);

    @PostMapping("/member/member/login")
     R login(@RequestBody LoginVo loginVo);

    @PostMapping("/member/member/auth/login")
     R authlogin(@RequestBody UserVo userVo) throws Exception;
}
